package com.kk.tx.service.controller;

import com.kk.tx.service.service.TransService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TransController {
    @Autowired
    public TransService transService;

    @RequestMapping("test5")
    public void test5(int from, int to, int amout) {
        transService.transfer5 (from, to, amout);
    }

    @RequestMapping("test7")
    public synchronized void test7() {
        transService.transfer7 (1, 2, 100);
    }

}
